<?php

namespace App\Caches;

use App\Models\Game;

class TestCache extends CacheBase
{
    /**
     * 缓存前缀
     * @var string
     */
    protected $prefix = 'game';

    /**
     * 读取真实数据，此接口只能由 remember 来回调
     * @param  string|array  $key    检索key
     * @return mixed
     */
    protected function getReal($key='')
    {
        return [
            'key' => $key,
            'create_time' => time(),
        ];
    }
}
